home *** CD-ROM | disk | FTP | other *** search
Text File | 2003-07-17 | 41.3 KB | 1,338 lines |
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // $Source: /vobs/aw/Maya/src/ExplorerSlice/UI/HyperGraphEdMenu.mel $
- //
- // $Author: jgross $
- // $Revision: /main/102 $
- // $Date: 2000/04/12 14:27:10 $
- //
-
- source hyperViewer;
-
-
- //
- // DAG or DG Level check
- //
- // Executing the actual commands for the chosen options as well as
- // all checking to keep the option menus and the buttons in sync
- //
- global proc checkHGControls(string $editor)
- {
- string $graphType = `hyperGraph -q -graphType $editor`;
- int $value, $showDGoptions;
-
- if ($graphType == "DG") { $value = 0; }
- if ($graphType == "DAG") { $value = 1; }
- $showDGoptions = !$value;
-
- // check all the buttons in the iconBar of the Hypergraph
- iconTextButton -e -en $value frameHierButton;
- iconTextButton -e -en $value frameBranchButton;
- iconTextCheckBox -e -en $value freeformButton;
- // check the node PopupMenu
- if (`menuItem -exists FoldItem`)
- { menuItem -e -en $value FoldItem; };
- if (`menuItem -exists UnfoldItem`)
- { menuItem -e -en $value UnfoldItem; };
- if (`menuItem -exists UnfoldAllItem`)
- { menuItem -e -en $value UnfoldAllItem; };
-
- if (`menuItem -exists FrameHierarchyItem`)
- { menuItem -e -en $value FrameHierarchyItem; };
- if (`menuItem -exists FrameBranchItem`)
- { menuItem -e -en $value FrameBranchItem; };
-
- // check for freeform mode options
- //
- if (`hyperGraph -q -freeform $editor` && $graphType == "DAG")
- $inFreeform = 1;
- else $inFreeform = 0;
- if (`menuItem -exists loadImageItem`)
- { menuItem -e -en $inFreeform loadImageItem; };
-
-
-
- // check for other menus
-
- // check the View Menu
- if (`menuItem -exists nextViewItem`)
- { menuItem -e -en $value nextViewItem; };
- if (`menuItem -exists previousViewItem`)
- { menuItem -e -en $value previousViewItem; };
- if (`menuItem -exists frameHierarchyItem`)
- { menuItem -e -en $value frameHierarchyItem; };
- if (`menuItem -exists frameBranchItem`)
- { menuItem -e -en $value frameBranchItem; };
-
- // check the Edit Menu
- if (`menuItem -exists FoldAllItem`)
- { menuItem -e -en $value FoldAllItem; };
- if (`menuItem -exists UnfoldSelectedItem`)
- { menuItem -e -en $value UnfoldSelectedItem; };
- if (`menuItem -exists UnfoldAllItem`)
- { menuItem -e -en $value UnfoldAllItem; };
- if (`menuItem -exists UnfoldHiddenItem`)
- { menuItem -e -en $value UnfoldHiddenItem; };
- if (`menuItem -exists ResetFreeformItem`) {
- int $freeform = `hyperGraph -q -freeform $editor`;
- menuItem -e -en ($value && $freeform) ResetFreeformItem;
- };
-
-
- if (`menuItem -exists ClearViewItem`)
- { menuItem -e -en $showDGoptions ClearViewItem; };
-
- // check the graph menu
- //
- if (`menuItem -exists navHomeItem`)
- { menuItem -e -en $showDGoptions navHomeItem; };
- if (`menuItem -exists DoLayoutItem`)
- { menuItem -e -en $showDGoptions DoLayoutItem; };
-
- // check the options menu
- //
- if (`menuItem -exists LayoutCascade`)
- { menuItem -e -en $value LayoutCascade; };
- if (`menuItem -exists FiltersItem`)
- { menuItem -e -en $value FiltersItem; };
-
- // update menu options so that theyr reflect the current
- // state of the editor.
- //
- updateOptionsState($editor);
- }
-
-
- global proc showDAGLevel(string $editor)
- {
- hyperGraph -e -navigateHome $editor;
- checkHGControls $editor;
- }
-
-
- global proc showDGLevel(string $editor)
- {
- hyperGraph -e -down $editor;
- checkHGControls $editor;
- }
-
- //
- // Options
- //
- // Executing the actual commands for the chosen options as well as
- // all checking to keep the option menus and the buttons in sync
- //
- global proc checkUpdateSubMenu(string $value, string $collectionName,
- string $editor)
- {
- int $cbState;
- if ($collectionName == "Menu") {
- switch ($value) {
- case "selection":
- $cbState = `menuItem -q -cb MenuUpdateSelectionItem`;
- hyperGraph -edit -updateSelection $cbState $editor;
- if (`menuItem -exists PopupUpdateSelectionItem`) {
- menuItem -e -cb $cbState PopupUpdateSelectionItem;
- }
- optionVar -intValue hypergraphUpdateSelection $cbState;
- break;
- case "node":
- $cbState = `menuItem -q -cb MenuUpdateNodeAddedItem`;
- hyperGraph -edit -updateNodeAdded $cbState $editor;
- if (`menuItem -exists PopupUpdateNodeAddedItem`) {
- menuItem -e -cb $cbState PopupUpdateNodeAddedItem;
- }
- optionVar -intValue hypergraphUpdateNodeAdded $cbState;
- break;
- }
- }
- else if ($collectionName == "Popup") {
- switch ($value) {
- case "selection":
- $cbState = `menuItem -q -cb PopupUpdateSelectionItem`;
- hyperGraph -edit -updateSelection $cbState $editor;
- if (`menuItem -exists MenuUpdateSelectionItem`) {
- menuItem -e -cb $cbState MenuUpdateSelectionItem;
- }
- optionVar -intValue hypergraphUpdateSelection $cbState;
- break;
- case "node":
- $cbState = `menuItem -q -cb PopupUpdateNodeAddedItem`;
- hyperGraph -edit -updateNodeAdded $cbState $editor;
- if (`menuItem -exists MenuUpdateNodeAddedItem`) {
- menuItem -e -cb $cbState MenuUpdateNodeAddedItem;
- }
- optionVar -intValue hypergraphUpdateNodeAdded $cbState;
- break;
- }
- }
-
- }
-
- //
- // Options
- //
- // Executing the actual commands for the chosen options as well as
- // all checking to keep the option menus and the buttons in sync
- //
- global proc checkShowSubMenu(string $value, string $collectionName,
- string $editor)
- {
- int $cbState;
- if ($collectionName == "Menu") {
- switch ($value) {
- case "shape":
- $cbState = `menuItem -q -cb MenuShapeNodesItem`;
- hyperGraph -edit -showShapes $cbState $editor;
- if (`menuItem -exists PopupShapeNodesItem`) {
- menuItem -e -cb $cbState PopupShapeNodesItem;
- }
- optionVar -intValue hypergraphDisplayShapeNodes $cbState;
- break;
- case "invisible":
- $cbState = `menuItem -q -cb MenuInvisibleNodesItem`;
- hyperGraph -edit -showInvisible $cbState $editor;
- if (`menuItem -exists PopupInvisibleNodesItem`) {
- menuItem -e -cb $cbState PopupInvisibleNodesItem;
- }
- optionVar -intValue hypergraphDisplayInvisibleNodes $cbState;
- break;
- case "expressions":
- $cbState = `menuItem -q -cb MenuExpressionsItem`;
- hyperGraph -edit -showExpressions $cbState $editor;
- if (`menuItem -exists PopupExpressionsItem`) {
- menuItem -e -cb $cbState PopupExpressionsItem;
- }
- optionVar -intValue hypergraphDisplayExpressions $cbState;
- break;
- case "constraints":
- $cbState = `menuItem -q -cb MenuConstraintsItem`;
- hyperGraph -edit -showConstraints $cbState $editor;
- if (`menuItem -exists PopupConstraintsItem`) {
- menuItem -e -cb $cbState PopupConstraintsItem;
- }
- optionVar -intValue hypergraphDisplayConstraints $cbState;
- break;
- case "deformers":
- $cbState = `menuItem -q -cb MenuDeformersItem`;
- hyperGraph -edit -showDeformers $cbState $editor;
- if (`menuItem -exists PopupDeformersItem`) {
- menuItem -e -cb $cbState PopupDeformersItem;
- }
- optionVar -intValue hypergraphDisplayDeformers $cbState;
- break;
- case "image":
- $cbState = `menuItem -q -cb MenuImageEnabledItem`;
- hyperGraph -edit -imageEnabled$cbState $editor;
- if (`menuItem -exists PopupImageEnabledItem`) {
- menuItem -e -cb $cbState PopupImageEnabledItem;
- }
- optionVar -intValue hypergraphDisplayImage $cbState;
- break;
- case "underworld":
- $cbState = `menuItem -q -cb MenuUnderworldItem`;
- hyperGraph -edit -showUnderworld $cbState $editor;
- if (`menuItem -exists PopupDeformersItem`) {
- menuItem -e -cb $cbState PopupUnderworldItem;
- }
- optionVar -intValue hypergraphDisplayUnderworldNodes $cbState;
- break;
- }
- }
- if ($collectionName == "Popup") {
- switch ($value) {
- case "shape":
- $cbState = `menuItem -q -cb PopupShapeNodesItem`;
- hyperGraph -edit -showShapes $cbState $editor;
- if (`menuItem -exists MenuShapeNodesItem`) {
- menuItem -e -cb $cbState MenuShapeNodesItem;
- }
- optionVar -intValue hypergraphDisplayShapeNodes $cbState;
- break;
- case "invisible":
- $cbState = `menuItem -q -cb PopupInvisibleNodesItem`;
- hyperGraph -edit -showInvisible $cbState $editor;
- if (`menuItem -exists MenuInvisibleNodesItem`) {
- menuItem -e -cb $cbState MenuInvisibleNodesItem;
- }
- optionVar -intValue hypergraphDisplayInvisibleNodes $cbState;
- break;
- case "expressions":
- $cbState = `menuItem -q -cb PopupExpressionsItem`;
- hyperGraph -edit -showExpressions $cbState $editor;
- if (`menuItem -exists MenuExpressionsItem`) {
- menuItem -e -cb $cbState MenuExpressionsItem;
- }
- optionVar -intValue hypergraphDisplayExpressions $cbState;
- break;
- case "constraints":
- $cbState = `menuItem -q -cb PopupConstraintsItem`;
- hyperGraph -edit -showConstraints $cbState $editor;
- if (`menuItem -exists MenuConstraintsItem`) {
- menuItem -e -cb $cbState MenuConstraintsItem;
- }
- optionVar -intValue hypergraphDisplayConstraints $cbState;
- break;
- case "deformers":
- $cbState = `menuItem -q -cb PopupDeformersItem`;
- hyperGraph -edit -showDeformers $cbState $editor;
- if (`menuItem -exists MenuDeformersItem`) {
- menuItem -e -cb $cbState MenuDeformersItem;
- }
- optionVar -intValue hypergraphDisplayDeformers $cbState;
- break;
- case "image":
- $cbState = `menuItem -q -cb PopupImageEnabledItem`;
- hyperGraph -edit -imageEnabled $cbState $editor;
- if (`menuItem -exists MenuImageEnabledItem`) {
- menuItem -e -cb $cbState MenuImageEnabledItem;
- }
- optionVar -intValue hypergraphDisplayImage $cbState;
- break;
- case "underworld":
- $cbState = `menuItem -q -cb PopupUnderworldItem`;
- hyperGraph -edit -showUnderworld $cbState $editor;
- if (`menuItem -exists MenuUnderworldItem`) {
- menuItem -e -cb $cbState MenuUnderworldItem;
- }
- optionVar -intValue hypergraphDisplayUnderworldNodes $cbState;
- break;
- }
- }
- }
-
-
- global proc checkOrientCollection(string $value, string $editor)
- {
- if ($value == "horiz") {
- hyperGraph -e -orientation horiz $editor;
- } else {
- hyperGraph -e -orientation vert $editor;
- }
- optionVar -sv hypergraphOrientation $value;
-
- if (`radioMenuItemCollection -exists ($editor + "OrientMenuCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "horiz") MenuHorizItem;
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "vert") MenuVertItem;
- }
-
- if (`radioMenuItemCollection -exists ($editor + "OrientPopupCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "horiz") PopupHorizItem;
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "vert") PopupVertItem;
- }
- }
-
-
-
- global proc checkFreeformCollection(string $value, string $editor)
- {
- if ($value == "On"){
- hyperGraph -e -freeform true $editor;
- iconTextCheckBox -edit -i1 "freeformOn.xpm" freeformButton;
- optionVar -iv hypergraphFreeform 1;
- } else {
- hyperGraph -e -freeform false $editor;
- iconTextCheckBox -edit -i1 "freeformOff.xpm" freeformButton;
- optionVar -iv hypergraphFreeform 0;
- }
-
- if (`radioMenuItemCollection -exists ($editor + "FreeformMenuCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor`) MenuFreeformOnItem;
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor` == false) MenuFreeformOffItem;
- }
-
- if (`radioMenuItemCollection -exists ($editor + "FreeformPopupCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor`) PopupFreeformOnItem;
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor` == false) PopupFreeformOffItem;
- }
- iconTextCheckBox -edit -value (`hyperGraph -q -freeform $editor`)
- freeformButton;
- }
- global proc checkFramesMenuItems ( string $editor )
- {
- menuItem -e -cb (`hyperGraph -q -animateTransition $editor`)
- animateTransitions;
-
- if (`radioMenuItemCollection -exists ($editor + "FramesMenuCollection")`) {
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- MenuFrame5Item;
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- MenuFrame10Item;
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- MenuFrame15Item;
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- MenuFrame20Item;
- }
- if (`radioMenuItemCollection -exists ($editor + "FramesPopupCollection")`) {
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- PopupFrame5Item;
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- PopupFrame10Item;
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- PopupFrame15Item;
- menuItem -e -en (`hyperGraph -q -animateTransition $editor`)
- PopupFrame20Item;
- }
-
- }
-
- global proc checkAnimateTransitions ( string $editor )
- {
- if (`hyperGraph -q -animateTransition $editor`) {
- hyperGraph -e -animateTransition false $editor;
- } else {
- hyperGraph -e -animateTransition true $editor;
- }
-
- checkFramesMenuItems $editor;
- }
-
-
- global proc checkFramesCollection (int $value, string $editor )
- {
- hyperGraph -e -transitionFrames $value $editor;
-
- if (`radioMenuItemCollection -exists ($editor + "FramesMenuCollection")`) {
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 5)
- MenuFrame5Item;
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 10)
- MenuFrame10Item;
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 15)
- MenuFrame15Item;
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 20)
- MenuFrame20Item;
- }
- if (`radioMenuItemCollection -exists ($editor + "FramesPopupCollection")`) {
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 5)
- PopupFrame5Item;
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 10)
- PopupFrame10Item;
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 15)
- PopupFrame15Item;
- menuItem -e -rb (`hyperGraph -q -transitionFrames $editor` == 20)
- PopupFrame20Item;
- }
- }
-
-
- global proc confirmResetFreeform(string $editor)
- {
- string $value = `confirmDialog
- -title "Confirm"
- -message "Do you really want to reset the freeform layout?"
- -messageAlign "center"
- -button "Yes" -button "No"
- -cancelButton "No" -defaultButton "Yes"`;
- if ($value == "Yes") {
- hyperGraph -e -resetFreeform $editor;
- }
- }
-
- global proc confirmClear(string $editor)
- {
- string $value = `confirmDialog
- -title "Confirm"
- -message "Do you really want to clear your graph view ?"
- -messageAlign "center"
- -button "Yes" -button "No"
- -cancelButton "No" -defaultButton "Yes"`;
- if ($value == "Yes") {
- hyperGraph -e -clear $editor;
- }
- }
-
- global proc confirmLayout(string $editor)
- {
- string $value = `confirmDialog
- -title "Confirm"
- -message "Do you want to re-layout the current graph ?"
- -messageAlign "center"
- -button "Yes" -button "No"
- -cancelButton "No" -defaultButton "Yes"`;
- if ($value == "Yes") {
- hyperGraph -e -layout $editor;
- }
- }
-
- global proc int loadImageCallback ( string $theFile, string $theFileType )
- {
- // Optional retaining of the new directory.
- string $currentDir = `workspace -q -dir`;
- // retainWorkingDirectory $currentDir;
-
- // Do stuff with $theFile
- string $typeList[] = `file -q -type $theFile`;
- if (size($typeList) > 0 && $typeList[0] == "image")
- {
- hyperGraph -e -image $theFile hyperGraphPanel1HyperGraphEd;
- hyperGraph -e -imageEnabled true hyperGraphPanel1HyperGraphEd;
- }
- else
- {
- confirmDialog
- -title "Error"
- -message "File type must be an image."
- -messageAlign "center"
- -button "OK"
- -defaultButton "OK";
- }
- return 1;
- }
-
- global proc loadImage(string $editor)
- {
- $myWorkspace = `workspace -q -fn`;
- setWorkingDirectory($myWorkspace, "image", "images");
- fileBrowser loadImageCallback "Load Image" "image" 0;
- }
-
-
- //
- // Menus
- //
- // Create the different menus, but only create them when they are needed
- // (dynamically build menus), and hook them up.
- // create and destroy the RMB menu as soon as you hit two different hit areas
- // the hyperPanel background and a node create different menus.
- // The menuItem creation is used by the popupMenu as well as the menuBarLayout.
- //
- global proc buildHyperEditMenu(string $editor, string $parent )
- {
- setParent -m $parent;
-
- if (`menu -query -numberOfItems $parent` != 0) {
- checkHGControls $editor;
- return;
- }
-
- menuItem -l "Rename" RenameItem;
- menuItem -divider true;
- menuItem -l "Collapse" FoldAllItem;
- menuItem -l "Expand" UnfoldSelectedItem;
- menuItem -l "Expand All" UnfoldAllItem;
- menuItem -l "Show Selected" UnfoldHiddenItem;
- menuItem -divider true;
- menuItem -l "Reset Freeform Layout" ResetFreeformItem;
- menuItem -l "Clear View" ClearViewItem;
- menuItem -divider true;
- menuItem -l "Attributes..." SingleAttrEditorItem;
-
- checkHGControls $editor;
-
- //
- // hook ups for the EditMenuItems
- //
- menuItem -edit -c ("hyperGraph -e -rename " + $editor)
- RenameItem;
- menuItem -edit -c ("hyperGraph -e -fold " + $editor)
- FoldAllItem;
- menuItem -edit -c ("hyperGraph -e -unfold " + $editor)
- UnfoldSelectedItem;
- menuItem -edit -c ("hyperGraph -e -unfoldAllShapes " + $editor)
- UnfoldAllItem;
- menuItem -edit -c ("hyperGraph -e -unfoldHidden " + $editor)
- UnfoldHiddenItem;
- menuItem -edit -c ("hyperGraph -e -attributeEditor single " + $editor)
- SingleAttrEditorItem;
- menuItem -edit -c ("confirmResetFreeform " + $editor)
- ResetFreeformItem;
- menuItem -edit -c ("confirmClear " + $editor)
- ClearViewItem;
- }
-
-
- global proc buildHyperViewMenu (string $editor, string $parent)
- {
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- checkHGControls $editor;
- return;
- }
-
- menuItem -l "Previous View" previousViewItem;
- menuItem -l "Next View" nextViewItem;
- menuItem -divider true;
- menuItem -l "Frame All" ZoomOutItem;
- menuItem -l "Frame Selection" frameSelectionItem;
- menuItem -l "Frame Hierarchy" frameHierarchyItem;
- menuItem -l "Frame Branch" frameBranchItem;
- menuItem -divider true;
- menuItem -l "Load Background Image..." loadImageItem;
-
- checkHGControls $editor;
-
- //
- // hook up the ViewMenuItems
- //
-
- menuItem -edit -c ("hyperGraph -e -previousView " + $editor)
- previousViewItem;
- menuItem -edit -c ("hyperGraph -e -nextView " + $editor)
- nextViewItem;
-
- menuItem -edit -c ("FrameSelected")
- frameSelectionItem;
- menuItem -edit -c ("FrameAll")
- ZoomOutItem;
- menuItem -edit -c ("hyperGraph -e -frameHierarchy " + $editor)
- frameHierarchyItem;
- menuItem -edit -c ("hyperGraph -e -frameBranch " + $editor)
- frameBranchItem;
- menuItem -edit -c ("loadImage " + $editor)
- loadImageItem;
- }
-
-
- global proc buildHyperNavigateMenu(string $editor, string $parent)
- {
- int $dimWhenNoSelect = 0;
-
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- return;
- }
-
- menuItem -l "Scene Hierarchy" navHomeItem;
- menuItem -divider true;
- menuItem -label "Input and Output Connections" allConnectionsItem;
- menuItem -label "Input Connections" upstreamItem;
- menuItem -label "Output Connections" downstreamItem;
- menuItem -divider true;
- menuItem -l "Layout" DoLayoutItem;
- menuItem -divider true;
- menuItem -l "Rebuild" RebuildItem;
-
- //
- // hook up all the NavigateMenuItems
- //
- menuItem -edit -c
- ("hyperGraph -e -navigateHome " + $editor + "; " +
- "checkHGControls " + $editor)
- navHomeItem;
- menuItem -edit -c
- ("hyperGraph -e -down " + $editor + "; " +
- "checkHGControls " + $editor + "; ")
- allConnectionsItem;
- menuItem -edit -c
- ("hyperGraph -e -upstream " + $editor + "; " +
- "checkHGControls " + $editor + "; ")
- upstreamItem;
- menuItem -edit -c
- ("hyperGraph -e -downstream " + $editor + "; " +
- "checkHGControls " + $editor + "; " )
- downstreamItem;
- menuItem -edit -c
- ("confirmLayout " + $editor)
- DoLayoutItem;
-
- menuItem -edit -c ("hyperGraph -e -rebuild " + $editor) RebuildItem;
-
- checkHGControls $editor;
- if ($dimWhenNoSelect) {
- dimWhen -f "SomethingSelected" allConnectionsItem;
- dimWhen -f "SomethingSelected" upstreamItem;
- dimWhen -f "SomethingSelected" downstreamItem;
- }
- }
-
- global proc checkInterestingNodeName ( string $nodeType, string $editor )
- {
- if ($nodeType == "renderPartition"){
- string $renderPartitionName = `renderPartition -q`;
- hyperGraph -e -dn $renderPartitionName $editor;
- hyperGraph -e -frameGraph $editor;
- } else {
- string $nodeTypeNames[] = `ls -type $nodeType`;
- hyperGraph -e -dn $nodeTypeNames[0] $editor;
- hyperGraph -e -frameGraph $editor;
- }
-
- }
-
- global proc buildHyperRenderingMenu(string $editor, string $parent)
- {
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- return;
- }
-
- menuItem -l "Show ShadingGroups" showShadGroupItem;
- menuItem -l "Show Materials" showShadersItem;
- menuItem -l "Show Textures" showTexturesItem;
- menuItem -l "Show Lights" showLightsItem;
- menuItem -divider true;
- menuItem -l "Create Render Node..." createRendNodeItem;
-
- //
- // Hook up all the RenderingMenuItems
- //
-
- menuItem -edit -c ("checkInterestingNodeName renderPartition " + $editor
- + ";checkHGControls " + $editor) showShadGroupItem;
- menuItem -edit -c ("checkInterestingNodeName defaultShaderList " + $editor
- + ";checkHGControls " + $editor) showShadersItem;
- menuItem -edit -c ("checkInterestingNodeName defaultTextureList " + $editor
- + ";checkHGControls " + $editor) showTexturesItem;
- menuItem -edit -c ("checkInterestingNodeName lightList " + $editor
- + ";checkHGControls " + $editor) showLightsItem;
- menuItem -edit -c
- ("createRenderNode \"-all\" \"\" \"\" ") createRendNodeItem;
- }
-
-
- global proc buildHyperShowSubMenu(
- string $editor,
- string $parent,
- string $collectionName)
- //
- // Description:
- // Build the contents of the Options > Display menu.
- //
- {
- setParent -menu $parent;
-
- // Check if the menu items have already been created.
- //
- if (`menu -query -numberOfItems $parent` != 0) {
- return;
- }
-
- menuItem -label "Shape Nodes"
- -checkBox `hyperGraph -query -showShapes $editor`
- ($collectionName + "ShapeNodesItem");
- menuItem -label "Hidden Nodes"
- -checkBox `hyperGraph -query -showInvisible $editor`
- ($collectionName + "InvisibleNodesItem");
- menuItem -label "Underworld Nodes"
- -checkBox `hyperGraph -query -showUnderworld $editor`
- ($collectionName + "UnderworldItem");
-
- menuItem -divider true;
-
- menuItem -label "Expression Connections"
- -checkBox `hyperGraph -query -showExpressions $editor`
- ($collectionName + "ExpressionsItem");
- menuItem -label "Constraint Connections"
- -checkBox `hyperGraph -query -showConstraints $editor`
- ($collectionName + "ConstraintsItem");
- menuItem -label "Deformer Connections"
- -checkBox `hyperGraph -query -showDeformers $editor`
- ($collectionName + "DeformersItem");
-
- menuItem -divider true;
-
- menuItem -label "Background Image (In Freeform Layout)"
- -checkBox `hyperGraph -query -imageEnabled $editor`
- ($collectionName + "ImageEnabledItem");
-
- menuItem -edit -command
- ("checkShowSubMenu shape " + $collectionName + " " + $editor)
- ($collectionName + "ShapeNodesItem");
- menuItem -edit -command
- ("checkShowSubMenu underworld " + $collectionName + " " + $editor)
- ($collectionName + "UnderworldItem");
- menuItem -edit -command
- ("checkShowSubMenu invisible " + $collectionName + " " + $editor)
- ($collectionName + "InvisibleNodesItem");
- menuItem -edit -command
- ("checkShowSubMenu expressions " + $collectionName + " " + $editor)
- ($collectionName + "ExpressionsItem");
- menuItem -edit -command
- ("checkShowSubMenu constraints " + $collectionName + " " + $editor)
- ($collectionName + "ConstraintsItem");
- menuItem -edit -command
- ("checkShowSubMenu deformers " + $collectionName + " " + $editor)
- ($collectionName + "DeformersItem");
- menuItem -edit -command
- ("checkShowSubMenu image " + $collectionName + " " + $editor)
- ($collectionName + "ImageEnabledItem");
- }
-
- global proc buildHyperUpdateSubMenu(string $editor, string $parent,
- string $collectionName)
- {
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- return;
- }
-
- menuItem -l "On Selection"
- -cb `hyperGraph -q -updateSelection $editor`
- ($collectionName + "UpdateSelectionItem");
- menuItem -l "On Nodes Creation"
- -cb `hyperGraph -q -updateNodeAdded $editor`
- ($collectionName + "UpdateNodeAddedItem");
-
- menuItem -edit -c
- ("checkUpdateSubMenu selection " + $collectionName + " " + $editor)
- ($collectionName + "UpdateSelectionItem");
- menuItem -edit -c
- ("checkUpdateSubMenu node " + $collectionName + " " + $editor)
- ($collectionName + "UpdateNodeAddedItem");
- }
-
-
- global proc buildHyperOrientationSubMenu(string $editor, string $parent,
- string $collectionName)
- {
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- return;
- }
-
- string $orientCollection =
- ($editor + "Orient" + $collectionName + "Collection");
-
- radioMenuItemCollection $orientCollection;
- menuItem -l "Horizontal" -rb
- (`hyperGraph -q -orientation $editor` == "horiz")
- ($collectionName + "HorizItem");
- menuItem -l "Vertical" -rb
- (`hyperGraph -q -orientation $editor` == "vert")
- ($collectionName + "VertItem");
-
- menuItem -edit -c
- ("checkOrientCollection horiz " + $editor)
- ($collectionName + "HorizItem");
- menuItem -edit -c
- ("checkOrientCollection vert " + $editor)
- ($collectionName + "VertItem");
- }
-
-
- global proc buildHyperLayoutSubMenu(string $editor, string $parent,
- string $collectionName)
- {
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- return;
- }
- string $freeformCollection =
- ($editor + "Freeform" + $collectionName + "Collection");
-
- radioMenuItemCollection $freeformCollection;
- menuItem -l "Freeform Layout" -rb
- (`hyperGraph -q -freeform $editor`)
- ($collectionName + "FreeformOnItem");
- menuItem -l "Automatic Layout" -rb
- (!`hyperGraph -q -freeform $editor`)
- ($collectionName + "FreeformOffItem");
-
- //
- // Hook up the LayoutSubMenuItems
- //
- menuItem -edit -c
- ("checkFreeformCollection On " + $editor)
- ($collectionName + "FreeformOnItem");
- menuItem -edit -c
- ("checkFreeformCollection Off " + $editor)
- ($collectionName + "FreeformOffItem");
-
- }
-
- global proc buildHyperTransitionsSubMenu (string $editor, string $parent,
- string $collectionName)
- {
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- checkFramesMenuItems $editor;
- return;
- }
-
- string $framesCollection =
- ($editor + "Frames" + $collectionName + "Collection");
-
- menuItem -l "AnimateTransitions"
- -cb (`hyperGraph -q -animateTransition $editor`)
- animateTransitions;
-
- menuItem -divider true frameNumCascade;
- radioMenuItemCollection $framesCollection;
- menuItem -l " 5 Frames" -rb
- (`hyperGraph -q -transitionFrames $editor` == 5)
- ($collectionName + "Frame5Item");
- menuItem -l "10 Frames" -rb
- (`hyperGraph -q -transitionFrames $editor` == 10)
- ($collectionName + "Frame10Item");
- menuItem -l "15 Frames" -rb
- (`hyperGraph -q -transitionFrames $editor` == 15)
- ($collectionName + "Frame15Item");
- menuItem -l "20 Frames" -rb
- (`hyperGraph -q -transitionFrames $editor` == 20)
- ($collectionName + "Frame20Item");
- setParent -m ..;
-
- //
- // Hook up the TransitionSubMenuItems
- //
- menuItem -edit -c
- ("checkAnimateTransitions " + $editor )
- animateTransitions;
-
- menuItem -edit -c
- ("checkFramesCollection 5 " + $editor)
- ($collectionName + "Frame5Item");
- menuItem -edit -c
- ("checkFramesCollection 10 " + $editor)
- ($collectionName + "Frame10Item");
- menuItem -edit -c
- ("checkFramesCollection 15 " + $editor)
- ($collectionName + "Frame15Item");
- menuItem -edit -c
- ("checkFramesCollection 20 " + $editor)
- ($collectionName + "Frame20Item");
-
- checkFramesMenuItems $editor;
- }
-
-
- global proc buildHyperOptionsMenu(string $editor, string $parent,
- string $collectionName)
- {
- setParent -menu $parent;
- if (`menu -query -numberOfItems $parent` != 0) {
- checkHGControls $editor;
- return;
- }
-
- string $menuItem =
- `menuItem -l "Display" -subMenu true FiltersItem`;
- menuItem -edit -postMenuCommand
- ("buildHyperShowSubMenu " + $editor + " " + $menuItem + " " +
- $collectionName) $menuItem;
- setParent -menu ..;
-
- string $menuItem =
- `menuItem -l "Orientation" -subMenu true OrientCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperOrientationSubMenu " + $editor + " " + $menuItem + " " +
- $collectionName) $menuItem;
- setParent -menu ..;
-
- string $menuItem =
- `menuItem -l "Layout" -subMenu true LayoutCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperLayoutSubMenu " + $editor + " " + $menuItem + " " +
- $collectionName) $menuItem;
- setParent -menu ..;
-
- string $menuItem =
- `menuItem -l "Transitions" -subMenu true -cb true TransitionCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperTransitionsSubMenu " + $editor + " " + $menuItem + " " +
- $collectionName) $menuItem;
- setParent -menu ..;
-
- string $menuItem =
- `menuItem -l "Update" -subMenu true UpdateCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperUpdateSubMenu " + $editor + " " + $menuItem + " " +
- $collectionName) $menuItem;
- setParent -menu ..;
-
- checkHGControls $editor;
- }
-
-
- global proc buildMainPopupMenuItems(string $editor, string $menuName,
- string $collectionName)
- {
- setParent -m $menuName;
-
- if (`menu -query -numberOfItems $menuName` != 0) {
- return;
- }
- menuItem -l "Hypergraph" HyperMenuTitleItem;
- menuItem -divider true;
- menuItem -divider true;
-
- string $menuItem = `menuItem -l "Edit" -subMenu true EditCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperEditMenu " + $editor + " " + $menuItem) $menuItem;
- setParent -menu ..;
-
- string $menuItem = `menuItem -l "View" -subMenu true ViewCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperViewMenu " + $editor + " " + $menuItem) $menuItem;
- setParent -menu ..;
-
- menuItem -divider true;
-
- string $menuItem =
- `menuItem -l "Bookmarks" -subMenu true -aob true ($collectionName + "bookmarksCascade")`;
- menuItem -edit -postMenuCommand
- ("hyperBookmarkBuildMenu " + $editor + " " + $menuItem) $menuItem;
- setParent -menu ..;
-
- menuItem -divider true;
-
- string $menuItem =
- `menuItem -l "Graph" -subMenu true dependencyGraph`;
- menuItem -edit -postMenuCommand
- ("buildHyperNavigateMenu " + $editor + " " + $menuItem) $menuItem;
- setParent -menu ..;
-
- string $menuItem =
- `menuItem -l "Rendering" -subMenu true renderingCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperRenderingMenu " + $editor + " " + $menuItem) $menuItem;
- setParent -menu ..;
-
- menuItem -divider true;
-
- string $menuItem =
- `menuItem -l "Options" -subMenu true hyperOptionsCascade`;
- menuItem -edit -postMenuCommand
- ("buildHyperOptionsMenu " + $editor + " " + $menuItem + " " +
- $collectionName) $menuItem;
- setParent -menu ..;
-
- // Attach the filter menu to the popup menu.
- //
- filterUICreateMenu($editor, `setParent -query -menu`);
- }
-
-
- global proc buildHyperGraphMenu(string $editor, string $parent,
- string $collectionName)
- {
- // setParent $parent;
-
- string $menu =
- `menu -l "Edit"
- -familyImage "menuIconEdit.xpm"
- EditCascade`;
- menu -edit -postMenuCommand
- ("buildHyperEditMenu " + $editor + " " + $menu) $menu;
- setParent -menu ..;
-
- string $menu =
- `menu -l "View"
- -familyImage "menuIconView.xpm"
- ViewCascade`;
- menu -edit -postMenuCommand
- ("buildHyperViewMenu " + $editor + " " + $menu) $menu;
- setParent -menu ..;
-
- string $menu =
- `menu -l "Bookmarks"
- -familyImage "menuIconBookmarks.xpm"
- -aob true
- ($collectionName + "bookmarksCascade")`;
- menu -edit -postMenuCommand
- ("hyperBookmarkBuildMenu " + $editor + " " + $menu) $menu;
- setParent -menu ..;
-
- string $menu =
- `menu -l "Graph"
- -familyImage "menuIconGraph.xpm"
- dependencyGraph`;
- menu -edit -postMenuCommand
- ("buildHyperNavigateMenu " + $editor + " " + $menu) $menu;
- setParent -menu ..;
-
- string $menu =
- `menu -l "Rendering"
- -familyImage "menuIconRender.xpm"
- renderingCascade`;
- menu -edit -postMenuCommand
- ("buildHyperRenderingMenu " + $editor + " " + $menu) $menu;
- setParent -menu ..;
-
- string $menu =
- `menu -l "Options"
- -familyImage "menuIconOptions.xpm"
- hyperOptionsCascade`;
- menu -edit -postMenuCommand
- ("buildHyperOptionsMenu " + $editor + " " + $menu + " " +
- $collectionName) $menu;
- setParent -menu ..;
-
- // Attach the filter menu to the menu bar.
- //
- filterUICreateMenu($editor, `setParent -query`);
- }
-
-
- //
- // Create the separate specified menu for the RMB on a node
- //
- proc createHGnodeMenuItems( string $editor, string $menu )
- {
- setParent -m $menu;
-
- menuItem -l "Node" HyperMenuTitleItem;
- menuItem -divider true;
- menuItem -divider true;
-
- menuItem -l "Collapse" FoldItem;
- menuItem -l "Expand" UnfoldItem;
- menuItem -l "Expand All" UnfoldAllItem;
- menuItem -divider true;
- menuItem -l "Frame Hierarchy" FrameHierarchyItem;
- menuItem -l "Frame Branch" FrameBranchItem;
- menuItem -divider true;
- menuItem -l "Rename" RenameItem;
- menuItem -l "Attribute Editor..." SingleAttrEditorItem;
- menuItem -divider true;
- menuItem -l "Show" ShowItem;
- menuItem -l "Hide" HideItem;
-
- checkHGControls $editor;
- }
-
-
- //
- // define context-sensitive node commands issued on highlight node
- //
- proc defineHGNodeMenuCommands(string $editor, string $menu)
- {
- menuItem -edit -c
- ("hyperGraph -e -useFeedbackList -fold " + $editor)
- FoldItem;
- menuItem -edit -c
- ("hyperGraph -e -useFeedbackList -unfold " + $editor)
- UnfoldItem;
- menuItem -edit -c
- ("hyperGraph -e -unfoldAllShapes -useFeedbackList " + $editor)
- UnfoldAllItem;
- menuItem -edit -c
- ("hyperGraph -e -useFeedbackList -frameHierarchy " + $editor)
- FrameHierarchyItem;
- menuItem -edit -c
- ("hyperGraph -e -useFeedbackList -frameBranch " + $editor)
- FrameBranchItem;
- menuItem -divider true;
-
- menuItem -edit -c
- ("hyperGraph -e -rename -useFeedbackList " + $editor)
- RenameItem;
- menuItem -edit -c
- ("hyperGraph -e -attributeEditor single -useFeedbackList " + $editor)
- SingleAttrEditorItem;
- menuItem -divider true;
- menuItem -edit -c
- ("hyperGraph -e -visibility on -useFeedbackList " + $editor)
- ShowItem;
- menuItem -edit -c
- ("hyperGraph -e -visibility off -useFeedbackList " + $editor)
- HideItem;
- }
-
-
- //
- // Hook up the buttons
- //
- proc defineButtonCommands (string $editor)
- {
- int $dimWhenNoSelect = 0;
-
- iconTextButton -edit -command ("FrameAll")
- frameGraphButton;
- iconTextButton -edit -command ("FrameSelected")
- frameSelectionButton;
- iconTextButton -edit -command ("hyperGraph -e -frameHierarchy " + $editor)
- frameHierButton;
- iconTextButton -edit -command ("hyperGraph -e -frameBranch " + $editor)
- frameBranchButton;
-
- iconTextButton -edit -command ("showDAGLevel " + $editor)
- showDAGButton;
- iconTextButton -edit -command ("showDGLevel " + $editor)
- showDGButton;
- if ($dimWhenNoSelect)
- dimWhen -f "SomethingSelected" showDGButton;
-
- iconTextButton -edit -command ("hyperBookmarkAddCallback " + $editor +
- " later")
- addBookmarkButton;
- iconTextButton -edit -command ("hyperViewer " + $editor)
- editBookmarkButton;
-
- iconTextCheckBox -edit
- -onCommand ("checkFreeformCollection On " + $editor)
- -offCommand ("checkFreeformCollection Off " + $editor)
- freeformButton;
- }
-
-
- global proc buildHGNodeMenuItems(string $editor, string $menu)
- {
- createHGnodeMenuItems($editor, $menu);
- defineHGNodeMenuCommands($editor, $menu);
- }
-
-
- global proc buildHGMenuItems(string $editor, string $menu,
- string $collectionName)
- {
- if (`popupMenu -e -exists $menu`) {
- string $feedbackNode = `hyperGraph -query -feedbackNode $editor`;
- if ($feedbackNode != "") {
- popupMenu -e -deleteAllItems $menu;
- string $gadget = `hyperGraph -query -feedbackGadget $editor`;
- string $cmd = "hypergraph"+$gadget+"Menu";
- if(`exists $cmd`) {
- string $call = $cmd+"(\""+$editor+"\",\""+$menu+"\",\""+$feedbackNode+"\");";
- eval $call;
- }else{
- buildHGNodeMenuItems($editor,$menu);
- }
- } else {
- popupMenu -e -deleteAllItems $menu;
- buildMainPopupMenuItems($editor, $menu, $collectionName);
- }
- }
- }
-
-
- global proc HyperGraphEdMenu(string $editor)
- {
- // Find the name of the control that the menu will be attached to
- //
- string $parent = `hyperGraph -query -control $editor`;
- string $popupMenuName = ($editor + "PopupMenu");
- string $collectionNameMenu = "Menu";
- string $collectionNamePopup = "Popup";
-
- // Create the popup menu
- //
- if (!`popupMenu -exists $popupMenuName`) {
- string $fullMenuName = `popupMenu -parent $parent $popupMenuName`;
- popupMenu -e
- -parent $parent
- -pmc ("buildHGMenuItems " + $editor + " " + $fullMenuName + " " +
- $collectionNamePopup)
- $popupMenuName;
- }
-
- buildHyperGraphMenu $editor "hyperGraphMenu" $collectionNameMenu;
- defineButtonCommands $editor;
- }
-
- //
- // Options
- //
- // Update menu options so that they reflect state of editor
- //
- global proc updateOptionsState(string $editor)
- {
- if (`menuItem -exists PopupShapeNodesItem`)
- menuItem -e -cb `hyperGraph -q -showShapes $editor`
- PopupShapeNodesItem;
- if (`menuItem -exists MenuShapeNodesItem`)
- menuItem -e -cb `hyperGraph -q -showShapes $editor`
- MenuShapeNodesItem;
-
- if (`menuItem -exists PopupInvisibleNodesItem`)
- menuItem -e -cb `hyperGraph -q -showInvisible $editor`
- PopupInvisibleNodesItem;
- if (`menuItem -exists MenuInvisibleNodesItem`)
- menuItem -e -cb `hyperGraph -q -showInvisible $editor`
- MenuInvisibleNodesItem;
-
- if (`menuItem -exists PopupExpressionsItem`)
- menuItem -e -cb `hyperGraph -q -showExpressions $editor`
- PopupExpressionsItem;
- if (`menuItem -exists MenuExpressionsItem`)
- menuItem -e -cb `hyperGraph -q -showExpressions $editor`
- MenuExpressionsItem;
-
- if (`menuItem -exists PopupConstraintsItem`)
- menuItem -e -cb `hyperGraph -q -showConstraints $editor`
- PopupConstraintsItem;
- if (`menuItem -exists MenuConstraintsItem`)
- menuItem -e -cb `hyperGraph -q -showConstraints $editor`
- MenuConstraintsItem;
-
- if (`menuItem -exists PopupDeformersItem`)
- menuItem -e -cb `hyperGraph -q -showDeformers $editor`
- PopupDeformersItem;
- if (`menuItem -exists MenuDeformersItem`)
- menuItem -e -cb `hyperGraph -q -showDeformers $editor`
- MenuDeformersItem;
-
- if (`menuItem -exists PopupImageEnabledItem`)
- menuItem -e -cb `hyperGraph -q -imageEnabled $editor`
- PopupImageEnabledItem;
- if (`menuItem -exists MenuImageEnabledItem`)
- menuItem -e -cb `hyperGraph -q -imageEnabled $editor`
- MenuImageEnabledItem;
-
- if (`menuItem -exists PopupUnderworldItem`)
- menuItem -e -cb `hyperGraph -q -showUnderworld $editor`
- PopupUnderworldItem;
- if (`menuItem -exists MenuUnderworldItem`)
- menuItem -e -cb `hyperGraph -q -showUnderworld $editor`
- MenuUnderworldItem;
-
- if (`menuItem -exists PopupUpdateSelectionItem`)
- menuItem -e -cb `hyperGraph -q -updateSelection $editor`
- PopupUpdateSelectionItem;
- if (`menuItem -exists MenuUpdateSelectionItem`)
- menuItem -e -cb `hyperGraph -q -updateSelection $editor`
- MenuUpdateSelectionItem;
-
- if (`menuItem -exists PopupUpdateNodeAddedItem`)
- menuItem -e -cb `hyperGraph -q -updateNodeAdded $editor`
- PopupUpdateNodeAddedItem;
- if (`menuItem -exists MenuUpdateNodeAddedItem`)
- menuItem -e -cb `hyperGraph -q -updateNodeAdded $editor`
- MenuUpdateNodeAddedItem;
-
-
- if (`radioMenuItemCollection -exists ($editor + "OrientMenuCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "horiz") MenuHorizItem;
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "vert") MenuVertItem;
- }
-
- if (`radioMenuItemCollection -exists ($editor + "OrientPopupCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "horiz") PopupHorizItem;
- menuItem -edit -rb
- (`hyperGraph -q -orientation $editor` == "vert") PopupVertItem;
- }
-
- if (`radioMenuItemCollection -exists ($editor + "FreeformMenuCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor`) MenuFreeformOnItem;
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor` == false) MenuFreeformOffItem;
- }
-
- if (`radioMenuItemCollection -exists ($editor + "FreeformPopupCollection")`) {
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor`) PopupFreeformOnItem;
- menuItem -edit -rb
- (`hyperGraph -q -freeform $editor` == false) PopupFreeformOffItem;
- }
- iconTextCheckBox -edit -value (`hyperGraph -q -freeform $editor`)
- freeformButton;
- }
-
-